package com.myproject.thread.daemon;

public class Daemon extends Thread {

    @Override
    public void run() {
        for (int i=0;i<30;i++){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread() + " live "+i + " times");
        }
    }
}
